from EventDefine import event_PRELUDEFINALE_FINALEDONE

class FSMExtend:
    WaitFinaleState = "WaitFinaleDone"
    def NextStateSet(self, state):
        self.NextStateSave = state

    # wait finale done
    def enterWaitFinaleDone(self):
        self.acceptOnce(event_PRELUDEFINALE_FINALEDONE, self.demand, [""])
        #print self.NextStateSave

    def exitWaitFinaleDone(self):
        self.ignoreAll()

    def filterWaitFinaleDone(self, request, args):
        return self.NextStateSave
